#! /bin/sh
. pathconfig.sh
cd build
MAKE=file_5.34
if [ ! -e "$MAKE" ] ; then
    wget http://ftp.de.debian.org/debian/pool/main/f/file/$MAKE.orig.tar.xz || exit 1
    tar -xvJf $MAKE.orig.tar.xz || exit 1
    mv file-5.34 file_5.34
fi
cd $MAKE
export PATH=$PLATFORM_PREFIX/bin:/usr/local/bin/:$PATH
export AR=arm-linux-androideabi-ar
export RANLIB=arm-linux-androideabi-ranlib
export SYSROOT=$NDK_PATH/platforms/$NDK_PLATFORM/arch-arm
./configure --host=arm-linux  --enable-static --disable-shared --prefix=/system
make clean
make -j8